package com.gxa.modules.mapper;

import com.gxa.common.vo.PageRecv;
import com.gxa.common.vo.ResultVo;
import com.gxa.modules.pojo.Credentials;
import com.gxa.modules.pojo.Loan;
import com.gxa.modules.pojo.Reconciliation;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ParameterMapper {
//    本金放款台账查询
    public List<Loan> selectPrincipal(PageRecv pageRecv);
//    本金放款台账对应的对账信息及凭证查询
    public Reconciliation selectReconById(long reconciliation_id);
    public Integer updateReconciliation(Reconciliation reconciliation);
//    添加台账凭证信息
    public Integer addCredentials(Credentials credentials);
//    本金收款台账
    public List<Loan> selectCollection(PageRecv pageRecv);
    public Integer  addReconciliationByPayBackId(@Param("payback_id") long payback_id, @Param("loan_id") long loan_id);
    public Integer  addReconciliationByLoanId(@Param("loan_id") long loan_id);
    public Integer  updateReconciliationAll(@Param("id") Integer id,@Param("name") String name);
}
